Adding collapse / expand functions to the javascript. Removing the collapsed templates.