I will propose to move this into its own file, and then having a simple way to merge it with the polyfill when producing the production version of it. I really don't like generated code mixed with written code.