renamed index.js to server.js for AWS compatibility