I\'m using express Js and I want to export the port on which the server is running for some testing purpose. But the port seems to be only available inside callback function