Fix simplified CommonJS wrapper

Support AMD's simplified CommonJS wrapper