allow Imager.js to also work as a commonjs or amd module