Wrap javascript in anonymous defines that require a named module mapped to a variable.