Clean up javascripts file