reset targetList with each loadJS

also minor clean-ups