added umd declaration for modules