JavaScript implementation to retirve kissmetrics reports

These two files are the JavaScript implementation for retrieving km reports.
Since the XMLHttpRequest class isn't available in penthao kettle I used the java HttpClient and its dependencies.

The native JavaScript will throw an cross domain exception if you doesn't run it from https://query.kissmetrics.com
For the penthao JavaScript just create a Modified Javascript Value element and use the code.