Rails4 compatibility

I've updated the events js files and bumped the railties version so it will be compatible with rails4.