Changing local file code for data downloads; doubt this will work either, but it will at least be *less* broken without PHP... also removed debugging from that file.