Committing javascrip library

This is the actual code used for the simple storage.