Update diffview.js

Iterate arrays correctly (rather than enumerating properties, which causes error when array object has been extended by other libs)