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