updated with new js version