Js queue upload