typeof process!='undefined' rather than process != undefined