get upload id from javascript without reload