unpolished draft

this commit has almost all parts needed to create working html5 page.