Fix doctype, UTF-8
Fix basic bug
Add saveAs to get working behavior