added javascript for weka