Fixed anchor offset js for Firefox.