pagination links retain hash tag of current page (js)