SOC-3893 | Create Unit Testing to compile JS to avoid syntax error at pr...

...oduction mode.