Cleaning up JavaScript assets