allow page size through JS
allow changing page size after initialiation