modified file.php and javascript/local_pz.js to work towards a good solution saving data to YourFile.txt.