Apply the category javascript script to edit transaction.