Fix parse and platform.js errors