Added AMD/CommonJS compatible definitions