added back-to-top + js refactoring 5