PsyToolkit: Create and run cognitive psychological experiments in the browser
You can learn from looking at the scripts how to develop your own experiments. You can download the experiment and upload in your own PsyToolkit online account (Watch a video on how to do that). You can use your own experiment and embed it in a PsyToolkit survey, and so collect data online using the PsyToolkit server.
Source: www.psytoolkit.org