Insert script with DOM methods