fix javascripts