Share files to multiple services using javacript