update generate labtalk function html source