JavaScript: check if Sidebar is open (Cable)