Correcting application.js according to JSLint + use of better_errors gem for debugging