Clean up required javascripts