Fixed namespace issue when using in-browser