Factor out tooltip generation
Exclude generated JS from eclipse validation