Made RequireJs friendly.