support AMD (requirejs)