changes to how js and css are loaded to work through search input problem