Update app.js

add missing semicolons, fix spacing issues, add JSDoc syntax