Updated output, etc.
Updated output, etc.

Added check at beginning to add trim() function to String prototype if it doesn't already exist.

Also changed headers to print whole message at beginning, and each segment before parsing out.
MikeAStevenson/JavascriptHL7Parser