Rails 4: Fixed 'Uncaught SyntaxError: Unexpected token ILLEGAL' that occured in Chrome