Fix compatibility with jquery-ui-rails gem v5.0.0