js: rename clickEvent
whitespace
pagination functionality without proper indexing
pagination fully functional