Updated server js