fixed recognition of the node server vs browser