Merged local storage calls into global JS
Removed old dbase scripts