figure out how to save php output to js var