Fix auto scrolling once link is clicked
Refactor js to be more efficient
Add styles