Using JavaScript to analyze Splinterlands Battle Data - I