adds necessary parentheses to avoid js automatic semicolon insertion