Minor flux-chat example code cleanup

Hey! Was reading through the example and noticed a few things that weren't quite right.