removed extra memcpy fron browser version