Wrap in UMD for AMD + CommonJS
Refactor accessible methods