Please review changes against upstream code using SCM,
see the Vcs-* tags in debian/control for its location.

--- dygraphs-2.2.0.orig/.pages.sh
+++ dygraphs-2.2.0/.pages.sh
@@ -28,7 +28,7 @@ sudoapt clean
 sudoapt update
 #sudoapt --purge dist-upgrade -y
 $sudoagi eatmydata git \
-    ed jsdoc-toolkit \
+    ed jq jsdoc-toolkit \
     libjs-bootstrap libjs-jquery libjs-jquery-ui \
     mksh pax python3
 
--- dygraphs-2.2.0.orig/DEVELOP.md
+++ dygraphs-2.2.0/DEVELOP.md
@@ -9,7 +9,7 @@ This is a step-by-step guide explaining
 To install dependencies, run:
 
     # for building
-    apt-get install mksh pax python3
+    apt-get install jq mksh pax python3
     # npm dev dependencies
     npm install
 
--- dygraphs-2.2.0.orig/README.md
+++ dygraphs-2.2.0/README.md
@@ -70,6 +70,7 @@ Check out the [dygraphs-es6 repo][] for
 
 To get going, install the following Debian packages…
 
+ - `jq`
  - `mksh`
  - `pax`
  - `python3`
--- dygraphs-2.2.0.orig/scripts/build-js.sh
+++ dygraphs-2.2.0/scripts/build-js.sh
@@ -85,9 +85,14 @@ browserify \
     --debug \
     LICENCE.js \
     tests5/tests/*.js \
-    >tests.js
+    >tests.tmp.js
 rm -rf src
 ../scripts/smap-out.py dygraph.tmp.js dygraph.js dygraph.js.map
+../scripts/smap-out.py tests.tmp.js tests.tmp2.js tests.tmp.map
+jq 'del(.sourcesContent)' <tests.tmp.map | perl -MCwd -pe \
+    's!"((?:\.\./)+)!Cwd::realpath($1) eq "/" ? "\"/" : $&!e;' \
+    >tests.tmp2.map
+../scripts/smap-in.py tests.tmp2.js tests.tmp2.map tests.js #--nonl
 
 # bundle and minify dygraph.min.js{,.map} with prod env
 cp -r es5 src
