s/localStorage/Firebase in example code