Practicing ajax with a photo album app