Fixes after live test in browser

TypeScript compilator bug workaround
HTML with actual JS-es included