 		tabsView.appendChild(tabView)
 		tabView.addEventListener('click', tabsterSwitchTab.bind(this, tab.id), false)
 
-	overflow.className += " visible"
+	overflow.classList.add("visible")
 	tabsterActive = true
 
 tabsterSwitchTab = (id) ->

	)

tabsterClose = () ->
	overflow.className = 'tabster-overflow'
	tabsterActive = false

handleKeyEvents = (e) ->
	return e unless (tabsterActive)
	e.preventDefault()
	if 27 == e.keyCode
		tabsterClose()
	key = String.fromCharCode(e.keyCode).toLowerCase()
	if key in baseKeys
		updateTabs(key)


addEvents = () ->
	document.addEventListener('keyup', handleKeyEvents, false)

buffer = []
updateTabs = (key) ->
	tabs = document.querySelectorAll(".tabster-tab")
	if buffer

				buffer = null
				return tab.click()
	
	possibleHits = document.querySelectorAll ".tabster-first-key-#{key}"
	buffer = possibleHits
	for tab in possibleHits
		tab.classList.add 'tabster-hit'
