Fixing major bug; AJAX URL in application.js now matches current URL