Update app/assets/javascripts/util.js