Re-factored js client side function to load by default for all templates. This will automatically bind events to delete buttons and disabled buttons.