added data endpoint to better match the jQuery api