make window.KA declaration inline