Make sure the input is correct
text() instead html() to prevent script injection
beautified code and passed with JSlint
valid HTML5
Merge pull request #74 from alemela/devel_20140407f

added copyright, changed html() in text() where dangerous, validate completly html and partially js