Implement cjs compiler