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

Update hgfunc.js