moved platform.js to scripts folder