Automatic semicolon insertion in JavaScript