begin refactor our jquery
vaguely working