I want to compare oldrecord and record in a trigger js. Is there a function availible ???