checking for process.browser instead of window to ensure we don't run server side tests in browser