Added example for loading scripts dynamically by pate