Ported to backbone.js.