added javascript for adding more files