APD-238: fixing js pagination