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

Update hgfunc.js