change the javascript base on the file_name_list.