Update express js code to distinguish between environments