converting to AMD-Web style UMD
fix return issue
adding AMD-Web UMD structure