Add index.js for server