javascript and html5 plaything