I think this is why just including platform.js wasn't working.