search patch and removing deprecated js files