Example app using ajax to call API and showing example of user friendships with draper gem and state-machine gem