Update Complex.js

make it browser compatible if module is undefined.