Updating index.js to log in development