Code based on Using The Chrome Developer Tools with John Sonmez (pluralsight.com)