Fix bug DNN-4040: update all js register to use JavaScript class, also register the dependency files when register dnn plugin js.