Assorted fixes for jOS controls sample.