Fixed some frontend and backend incompatibilities due to Pages
Fixed bugs in race conditions for js async
Code for "pages" is complete !