Update mpl.js

We are generating 'ReferenceError: figure is not defined' when we try to download a figure into a particular image type.