Removing $localstorage parameter from angular run function