format js
cursor and offset function for AdminPage model