Minor JS cleanup.