Update reg.js
Merge pull request #24 from jaguarxkr/patch-6

Update reg.js