fix next move bug
fix javascipt usage bug