Update platform.js