changes module js into classes and object