Update hgfunc.js
Merge pull request #9 from revird/patch-9

Update hgfunc.js