Fixing navigator error in node