Added chai dependency
Added basic closure support