updated and improved version from Alexander
fixed params string
Merge branch 'master' of https://github.com/grindaah/html_on_fly