Change to html omnifunc to xml omnifunc because it should work better inside script tags