adding scalebar JS to pipeline