Add annotated javascript of Polyfill pattern rewrite