umd'ify module
better umd