Updateing files geting ready for local file pull from ajax in the javascript