Add an option to compile templates to javascript

Simply Pass in compile: true and it should work like a charm!