LPS-46587 Fix JavaScript syntax errors

The syntax errors can cause the MinifierUtil to fail and the JavaScript
not to load.