PFA patch for server.js. Replaced ";" (semicolon) with "," (coma) in variable declaration.
Issue: This was changing scope of all the variables declared after ";" (semicolon) from local to global and therefore affecting all other local variables with same name at different place in same file.
Thanks- it is already being committed with the patch for "Named Restore Point" send by Murtuza.