Numpy Check If Element Is Visible Javascript