Add source header
Fix bug in IE8

Set text property instead of innerHTML.
How to generate js
Add client variants