Parse weka result to JavaScript