Testing the behaviour of lazy-loaded inline script.

<script> added via innerText doesn't get executed by itself, so we need
to handle them separately in renderOnDemand
(cherry picked from commit ee43b8e7e154b7b6142fd40b4756bd025e6cd85e)

Conflicts:
	test/src/test/java/lib/layout/RenderOnDemandTest.java
testing external script as well
(cherry picked from commit 11eb4c72b1ddbd0d26989a7c55556acf70924a49)