Mastering the art of jquery API calls