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

Update hgfunc.js