Added fs definitions by using require(fs