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

Update hgfunc.js