Style: Style adjustments for functions

Move outer function braces to same line as declaration, and add a space
between `function` keyword and parameter list.