[OE-3659] js bugfixes for new html