using json instead of js
Update to Rails 4.0.5

* Fixes #1