Updated comments in HT.js

Updated some of the comments in the HT.js file to further explain why
certain code was used.