Added grunt with mocha task
Added Function type