Refine timing related to calling Polymer() in main document scripts when polymer is imported.