Evented JavaScript for the browser