setPlatform support

Adds support for setPlatform in the javascript tracker. Example use case here would be html+js running inside node-webkit, or a webview on a mobile platform.