fix bug javascript + update practice mode