Added edit url to homepage
Updated app.js to follow best practices