This is probably more simple than you're looking for, but for others who may be confused:
First, here's a non-programming definition of a Shim:
noun: a washer or thin strip of material used to align parts, make them fit, or reduce wear.
verb: wedge (something) or fill up (a space) with a shim.
To understand a shim in programming terms, you need to understand what a pain IE was/is for web developers:
IE was one of the first commercially-available web browsers. And it may have been the first one available "for free". Thus, it was built before browser standards were defined, ie definitions of how to handle html and javascript.
So, in order to keep sites and applications working in IE, as standards were produced, IE could not or (for monopolistic reasons) would not update IE (here's a great post with more info about that). This caused a rift between IE and other browsers that grew over time. This rift often surfaced in unexpected errors, styling differences, and some applications straight-up refused their users the option of running it from other browsers.
But, if a product was going to be available for both types of browser, developers often had to write two sets of code. One for practically every modern browser, and one for IE. Obviously, this practice made upkeep a nightmare. But, as time progressed, many JavaScript frameworks/libraries started adding code to specifically address these issues. These pieces of code are known as shims. Because they're making your code "fit" in IE.
For instance, when jQuery was first released, a major advantage it had over its predecessors - or just writing your own library - was that it worked in every Browser, even IE. At the time IE was still heavily used, so this saved developers a lot of time. But now jQuery is on version 3. And the major difference between previous versions is that it no longer supports IE. That's because everyone, even Microsoft has sorta moved away from IE (Win10's default browser is Edge). But, unfortunately many sites and web applications were designed specifically for IE (for security reasons). And even though IE has gone the way of the Dodo for most commercial applications, it still offers security features that other browsers don't (but they're catching up quickly). And even if they did, the cost of updating these applications is often too great to be justifiable.
And that basically means many people still are forced to use IE, so these shims are still necessary.
/*! HTML5 Shiv vpre3.6 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
.