fix for jquery-ui-rails 5