Add platform.js in example

Reviewer: @nevir