making explicit imports
using process.browser instead of type window