Everytime I try to use the lib in the browser I get the error that "window is not defined" at load. I upgraded from an older version to the latest. Why?