flexible account js pagination