Hotfixes to application.js - I left debugs behind