using full amd compliant jquery in the sample implementation
fixed response type to integer