fixing javascripts paths