modified server js