cleaning + javascript completion using tern