made the local storage default from javascript work