Fix to indentation/spaces and use of the _.extend instead of jQuery extend.