corrected some inline documentation in template's js