結果 : check if an element is visible javascript