merci doudou, fix playAll js function