Add AMD export

Adds support for using Require.js to load FileSaver module asynchronously.