CodeMirror with tern hint is not showing when any open bracket(`(`) is there in that line

I am trying to create some custom intellisense using CodeMirror with tern. But hint menu is not showing when any open bracket(() is there in same line. Please find my git repo.