updated the jQuery example
removed comment calling for a jQuery plugin, as it would have no specific benefit
renamed config to the more industry-standard options
support a default option for the URL of the endpoint and improved inline comments in the example