scans.js.coffee: Update to set focus to the textarea when the comment form modal is loaded
rescue CanCan::AccessDenied returns a JS redirect instead of an HTTP redirect in order to affect AJAX calls