fix node vs. browser warning