added workerTrain: train networks using WebWorkers