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

Update hgfunc.js