Process undefined in browser

Fix check if process == undefined.