Use UMD pattern for module exports