fixing javascripts