make AMD compatible for use as a RequireJS module