it's worth repeating what Kris said - this behavior is native javascript - has nothing to do with NetSuite and you should expect the same behavior in any other standards compliant JavaScript environment. For this reason we follow a style to always include opening curly braces on the same line, not the next line.