fixed recognition of node server vs browser