Rails 4 compatibility

added jquery-ui-rails as a dependency and bumped the railties version.