use UMD pattern to define module
update readme