moving filenames from php code into javascript