TypeScript applied for server.js