Update app/assets/javascripts/models/base.js