moved platform.js