add jquery and dynamic page sizes