fixed double select uploading javascript