Added method add_header_js() to template to allow insertion of code to be run immediately after JS init
# Used for testing mod_rewrite.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) install.php?do=modrewrite_test&str=$1
</IfModule>