Update helpers.js

Altered regex for fields[0] to ensure not catching scientific notation, (E or e) as well as NaN messages.