update card preview and load platform.js