fix bug of js