fixes for jquery-ui version 5.0
Merge pull request #185 from t-bullock/fix-for-jquery-ui-rails

fixes for new jquery-ui version