fixing format for vocabulary on Angular JS