add browser mode so localStorage is recognized