Center of Mass solutions

Center of Mass was solved using Javascript by 1 contestant.