jshint code style
add tests, Storage constructor and build