more refactor
move template slot code to template_slots.js.coffee