heh fun was shorthand for function

   dom.classList.toggle('loading', tab.loading) 

actually works now, but it is only in m-c and not b2g18 so I didnt use it, but soon!