Converted loadInComposite to JavaScript in preparation for widget
parent/child whitelists/blacklists.