minor fixes to js, now using oo pattern. dynamic creation of organization checkbox