Build JS bundles before Django unit tests

This fixes an issue where running `./scripts/test.sh` without first running
`./scripts/npm.sh run build` would result in an error.
Add JS test harness