Fixed js today function
Delete unused service types when deleting service record