adding commonJS module copy from wiki