move lastCommit stuff out of app.js