Packet Integrity: nodejs doesn't have 'a'.endsWith()

doh!
Packet Integrity: track bad packet count
Merge verify-packets-fix-bug (#4) into master

Packet Integrity: nodejs doesn't have 'a'.endsWith()

Doh!

also, track bad packet count.