tried to fix local storage with require js