$localStorage support for profiles