Small refactor cocoon.js
Small refactor cocoon.js

eetteri/cocoon,CuriousCurmudgeon/cocoon,nathanvda/cocoon,nathanvda/cocoon,eetteri/cocoon,eetteri/cocoon,ikhakoo/cocoon,vtamara/cocoon,ikhakoo/cocoon,vtamara/cocoon,asiniy/cocoon,chrise86/cocoon,ikhakoo/cocoon,treble37/cocoon,chrise86/cocoon,CuriousCurmudgeon/cocoon,treble37/cocoon,asiniy/cocoon,chrise86/cocoon,vtamara/cocoon,asiniy/cocoon,nathanvda/cocoon,treble37/cocoon