Removed most of the javascript ffunctionality for viewing summary and templating - focusing on building basic functionality first.