Converted Windows line endings to Unix.
html_escape now makes sure it has a string.

Should fix some weird edge case with an undefined string.
README is now markdown and licence is in there.
Improved a lot of the JavaScript formatting.