global Backbone fix

Hi Alexey,

Thanks for making this code available! I was just starting to write my own dual storage functionality but found your repo ... perhaps I can help you test instead?

I know you've just added the amd support but I had to make a few minor changes to get the tests to pass.