Initial js
Added page navigation