add umd wrapper around lib