Frog game made in pure javascript no frameworks