updating iwitness.js