JS: add debug statements to runvw.sh