remove dep on jquery.
refactor: consolidate var def