modified functions to work with localStorage objects.
refactored variable names and removed insantiations of helper objects.
transferred and updated good code from default.js to index.html
patched updates
ids should not begin with 0, because id 0 may be used in another dom element.