clean up of templates to seperate  style and structure.  begin move of js to script files