Object uploader javascript handel