Clean up javascripts