Took me a while to get around to learning it, but I'm very happy with jsPsych as a tool for running behavioural experiments through the browser.
http://www.jspsych.org/