Follow @KrizhPangilinan TagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id