Fix JavaScript name in warning