Update jcb.js

from window to just var, so scope is tracked correctly.