Move make script logic to dom-ext package

Added constructor for plain script content