changed modules to use new commonjs define syntax by default