dnn-3678 Create Generic JavaScript Library class