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

Update hgfunc.js