Fixed whitespace, capitalized 'template', shortened licenseTypes

Put spaces around '='s.
Changed mixed spaces and tabs to tabs only.
Renamed 'template' to 'Template' (it is a javascript convention)
Shortened 'licenseTypes()'
(did not test)