use sprockets JST to handle templates 

* removed inline template hack
* simplified test setup