prepared server.js for testing