(function() {
  'use strict';

  function init() {
    u.addEventListener('change', storeID);
    var userid = localStorage.getItem('userid');
    if (userid !== null && typeof userid !== 'undefined' && userid !== '' && userid !== ' ') { // localStorage key exists and is not empty or a single space
      fillID();
    } else { // Does not exist or is empty or a single space
      u.focus();
    }
  }

  function fillID() {
    u.value = localStorage.userid;
    p.focus();
  }

  function storeID() {
    localStorage.setItem('userid', u.value);
  }

  if (document.getElementById('userid') && document.getElementById('password')) { // Username and password inputs exist
    var p = document.getElementById('password');
    var u = document.getElementById('userid');
    init();
  } else {
    console.log('Chrome extension "Wells Fargo - Remember username" is out of date and is no longer functioning. Developer must update.'); // Wells Fargo homepage has been updated, breaking extension functionality
  }

}());

@@ -52,194 +52,60 @@
     
-u.addEventListener('change', storeID);%0A    var userid = localStorage.getItem('userid');%0A    if (userid !== null && typeof userid !== 'undefined' && userid !== '' && userid
+if (u.value !== 'undefined' && u.value
  !== '
- 
 ') %7B // 
 loca
@@ -104,234 +104,163 @@
  // 
-localStorage key exists and is not empty or a single space%0A      fillID();%0A    %7D else %7B // Does not exist or is empty or a single space%0A      u.focus();%0A    %7D%0A  %7D%0A%0A  function fillID() %7B%0A    u.value = localStorage.userid
+Username is not empty%0A      console.log('Username remembered');%0A      p.focus();%0A    %7D else %7B // Is empty%0A      console.log('Enter your username')
 ;%0A    
+ 
-p
+ u
 .foc
@@ -271,78 +271,11 @@
 ;%0A  
-%7D%0A%0A  function storeID() %7B%0A    localStorage.setItem('userid', u.value);
+  %7D
 %0A  %7D

Update to only focus login fields