Clean code - use of messageEvent.origin