reduce expensive jquery queries in editor, as well as new appstatic template