Feature/js 2.1.0 storage

Note that I haven't added the tickets for this branch to the CHANGELOG yet.
@alexanderdean looks like the problem is mixed tabs and spaces. atomic-def.sql uses tabs, so I'm guessing tabs are the correct way to go?