toXml unnecessarily encodes text nodes

-Text value found within text nodes only needs to encode the & and <
symbols to their respective character codes.
-Test case indicates that single quote (and other allowed symbols) will
not be encoded for text node values
Update jsxml.js
minimized structural and variable name differences
Added newline at end of file
Spacing issues fixed

Implement spacing between functions that is consistent with original
master branch code
Merge pull request #4 from rrazd/BetterTextNodeEncoding

toXml unnecessarily encodes text nodes