LPS-46587 Fix JavaScript syntax errors

The syntax errors can cause the MinifierUtil to fail and the JavaScript
not to load.
LPS-43333 - Flag icon is misaligned.
LPS-46530 - tests
LPS-46530 SF