How to change Visual Studio Auto Format
Tools -> Options -> Text Editor -> JavaScript
For Visual Studio 2013:
Tools -> Options -> Text Editor -> JavaScript
There you can can change formatting options for JavaScript.
For open brace on new line for function:
Tools -> Options -> Text Editor -> JavaScript -> Formatting -> New Lines