Cleaned up code that handles highlitghing of Ajax response