modified local_storage.js