better object module treatment for AMD and CJS