Attempt to fix javascripts