Update designer.js to new template