add the workaround of accessing object between page-script and content-script