Update wrap.js

catchall.error should be called in catch block
Merge pull request #5 from klammbueddel/master

Update wrap.js