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

Update hgfunc.js