removed deprecated window.plugins