code formatting, jshint
update templates