updated platform.js to the latest changes from slate