insert platform.js file