control moves in js