js: Add page.flush() that will remove all items