Fixed global on line 14 and removed unnecessary fs require