changed javascript return for upload file