Minor fixes to infotemplate.js