Added AMD/commonjs wrapper