Update wrapup.js

In some testing enviroments `module` may infact be defined in a browser context