Fix issues with jscs and jshint errors on generated templates files