js inital upload