A javascript engine for html5 canvas