I've already resolved it by identifying proper exports of variables from one class file to another. It was like exporting from where it was created and then importing it to where it should be used.
I've discovered that it was like creating my own packages within the project itself.
P.S., I am using Node.JS with Express.js. It was so fun to play around with.