Updating app.js to work with field projection