AMD (asynchronous module definitions) in R