Added support for Common-style require

Needed to change module to thisModule so that it didn't overwrite the common.js module global.