make register.js loadable on NodeJS, hopefully fixes #148