cleans up json and application.js