[IMP] module definition and JS code