Well, the problem is clearly seen from the screenshots below.   I couldn't find any strict recomentation for JS to break the line after the closing brace. JSHint doesn't generate any warnings too.