Client side csv generator