server: Add demo page for slice API with JS