Extract a storage.js file
Better test
Fix on issue #1, add a `error` event listener after call to `putFile`