Address JSLint errors.  Clean up whitespace and inject $location in header.