updates the javascripts.