Added URL parsing to platform.js