Allow use with CommonJS and AMD