fixing UMD pattern to actually (also) polyfill in node/AMD envs as well. closes #9.