JQuery: fixed bug with anchor jumping to top