Handle jquery-rails issue