Update javascript and html5