Added more interactivity to js/html5 implementation