javascript upgrades and all search functionality