localstoragedb added

moved js to lib folder