implement back to top (vanilla JavaScript)
add network error handling