Fixed extractPadData.js, #1320

Fixes issue #1320
Thanks a lot to @marcelklehr!