Basic Implementation of ExpressJs middleware