changed to use commonjs modules instead of built file