rename option.class to option.className
typo pagesSize vs pageSize