It is also not guaranteed that the outermost `{` will be the first char on the line. Maybe there is something in the js-library that can help us here?