Add file uploading in javascript