     activeName = doc.querySelector '#name-active'
     main = doc.querySelector 'main'
 
-    activeTabs.forEach @.style.opacity = 0, @
+    activeTabs.forEach (tab) -> tab.style.opacity = 0
     activeName.style.opacity = 1
 
     $.ajax

  main = doc.querySelector 'main'

  activeName.style.opacity = 0
  activeTabs.forEach @.style.opacity = 0, @

  doc.querySelector('#' + name + ' .tab-active').style.opacity = 1


tabs = ->
  tabs = ['manufacturer', 'production', 'contacts']

  tabs.forEach (tab) -> tabHandler tab

  $('#name').on 'click', ->

