Be compatible with Rails 4

See https://github.com/rails/jquery-rails/commit/15b0e68677145906e791c140cff014f43c7bc45d