Use JS templates in modules rather than inline markup