make code match documentation a bit closer with a shortcut for fetching via ajax