Refactoring loadSettings for Chrome