js module reconstruction