Added 'npm test' and UMD loading for AMD, Node, and globals