Update $.sync to use the Chrome Storage API and only one event listener.