switched to platform.js dependency