Fix some jsmol issues