Add file drop behaviour in js