Improved back to top functionality. Refactore app.js.