updated js and less with templates

Started adding templates and formatting