Rather than duplicating the entire row (which makes code maintenance more difficult), seems much of the work could be done using template tags more efficiently (setting a pink display class, choosing which action button is available).  It would also avoid the rows from flashing at load time.

Is there an advantage of doing this through JS rather than template code?