adding fileuploads javascript