Fixed brace style for the entire javascript code.