Removed bad function in application.js