Add script to dynamically created objects

Just for fun: