Adds js methods to append delete buttons