Add Tern static analysis for JavaScript