update scripts to javascripts