Access the REST API using jQuery