Update shim.js

added close() to handle windows/tabs.
added renderBase64() for pro's