[UI][CORE][JS] fixed wrong behavior because of errors in index.html