Added some javascript and some PHP that tries to open a file. Currently it passes the filename to the javascript and prints the filename