Update detective to support ES6 syntax.

Latest version of detective uses an esprima which supports ES6.
Merge pull request #14 from timoxley/update-detective

Update detective to support ES6 syntax.