code: function resolveModuleName(base, name) {
  	var stack = base.split('/');
  	stack.pop();
  	name.split('/').forEach(function(segment, i) {
  		if ( segment == '..' ) {
  			stack.pop();
  		} else if ( segment === '.' ) {
  			// ignore
  		} else {
  			if ( i === 0 ) {
  				stack = [];
  			}
  			stack.push(segment);
  		}
  	});
  	return stack.join('/');
  }
docs: /*
  resolves relative AMD module identifiers relative to a given base name