[13091784] Fixed getFieldValues so it will initialize fields to an empty...

... string. Fixed JSHint warnings as well.

@CHenrie Please review.