Made better indentation for textarea in dynamically generated source code.
Fixed indentation for script elements.
Fixed inifinitive loop for generating dynamic source code.
Unified samples <script> content.