begin statistics/ajax/beeminder implementation