Return class in AMD definition