Add @memberOf tags to comments so that jsDoc3 can parse definitions inside the function closure.