Fix JSON response checking

This is caused by upgrading to Rails 4.1
Escape SpecHelper's methods namespace invasion by changing method name
Fix CSRF warning with javascript

Rails 4.1 warns