Make the library AMD aware so that it can be used in a CommonJS or requirejs environment