Updated x-domain JS with correct 'master' attribute