fix umd commonjs factory loading