Returns messages from nested objects to fix #7.
Fixes type checks.
Corrects forEach type check.
Replaced forEach() by for() loop to ensure IE8 compatibility. Updated minified JS file.
Merge branch 'ryansmith94-patch-1'