Changed script loading procedure

First script now loads through addCustomTag, because of the id in
<script> declaration.
Second script loads through addScriptDeclaration.