subscriber library updated to give total no of pages

extra fixes: in js file