javascript hacks to scroll to elements