amd def does not return $.validator