Keep html templates in asset pipeline and use through simple javascript functions