Check if controller inside directive is a function to avoid error on "if
(node.type == "FunctionExpression") {" See
https://github.com/angelozerr/angularjs-eclipse/issues/34
Fix bug with directives and function Array.
Support CordovaJS in Content Assistant for Tern.

Signed-off-by: vrubezhny <vrubezhny@exadel.com>