Split templateDesigner.js into different views