workaround for bug 893349
many fixes for movetotop
counter not working in PDFJS in FF24