updated server js