Refactor adding points in tasks.js.coffee