Allow code to be used as common.js module and with component.io