Added a jquery function to filter by attributes. Add more logging in rename file Use the new function to avoid errors