Upgrade jquery-rails
Refactor code to use try() method