Updating to support Firefox and fix bug with resizing page having incorrect page count.