Added AMD support using a umdjs pattern

https://github.com/jeffrose/taffydb/commit/f0a44fbc9a29b9b3550f6ab42bf0f9114b6a132d#L1R68

(I hope I have adjusted it correctly)