Changed to load script files dynamically.
Changed sample apps.