Gtagsjs is a project mainly written in HASKELL and JAVASCRIPT, it's free.
GNU Global JavaScript Plugin