fix AMD define again; return constructor, not instance