branch to remove requirejs and export as optional module instead
code sorted, need to fix up testing then build and deploy
all tests passing, UMD module