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

Update hgfunc.js