UMD style for loading dependencies

UMD style fixes problems with some AMD loaders