Just return true instead?
The return value from the onClick code is what determines whether the link’s inherent clicked action is processed or not – returning false means that it isn’t processed, but if you return true then the browser will proceed to process it after your function returns and go to the proper anchor.