Make module common js compliant