Use jquery-ui-rails gem to specify jQuery ui modules to reduce overhead