Fixed callbacks in units.js.coffee