add localstorageDB.js file

and rearranging the scripts