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

Update hgfunc.js