html/js initialization