update background scripts
fix moment.js deprecation warning
fix some nesting
fix broken modals and search query references