minor fix, fieldsToHtml was a bad reference.
minor, removed require of unused lib.
fixed bug in getMessage(), use break not continue and just return
non-objects.