SOC-3890 | Create Unit Testing to compile JS to avoid syntax error at production mode.