Template decoupling

This is a proposal for issue #38. Having it outside the js file it's easier to extend/customise.

Note: didn't update the bower.json since i don't know if you want this.