Fix JS iteration

Well, work around it.
Don't refer to global kernelselector object in Session