Update detective to support ES6 syntax.

Latest version of detective uses an esprima which supports ES6.