Minor app.js refactor and adds map click to add pin.