Quick change to make more standard, ycm_extra belongs in templates logic. Though ruins script a bit with awkwardness of code.