Can you get an avg of data with the js library? - Supabase