Move `platform-demo` to platform.js