Moved setCurrentFolder and localStorage helper functions into common.js