for some case with long text, somehow the javascript syntax return wrong page count. thanks for great library.