Moved scripts rendering to extension