Fix https://github.com/angelozerr/tern.java/issues/182 for angular