reset per_page with javascript