Utility lib for cross-document communication using PostMessage