The JavaScript coding convention is to place the starting bracket of blocks on the same line of their declaration:
if (...) {
}
function (a, b, ...) {
}
Instead of in the next line:
if (...)
{
}
function (a, b, ...)
{
}
This has been adopted to avoid semicolon insertion ...