fix for avoid navigator object in node.js