Update tasks to Grunt 0.4 API
Fix context in validateTerms()