Modularize tcm with requirejs and templates