Build a circle stats in pure javascript