First attempt at ajax functionality - working favorites buttons