Modified to work with Meteor templates and angular-templating smart package