Add IIFE to avoid introducing global variables

Without the closure provided by the IIFE, angularLocalStorage is a global variable.

The IIFE prevents global variable introduction.