Updated: server js file