Update app.js

Adding update of currently editing line object when hitting return.