JS updated
Updated the Guard for getting the local storage