Php Replace String Array Key Javascript Download