fixed if statements, 'if(' became 'if ('
fixed '){' -> ') {' in js code
fixed '){' -> ') {' in groovy code