Changed: Some redundant brackets are removed in JS generator