Added term number to html code from branch.
Fix conflictwith branch merge, added term number to html code.