Add angular as a global for JSHint
Converting to an immediate function