Using JavaScript to populate stock data