AMD/CommonJS-ified