Issue #561 - Execute inline JS.

This follows the approach of external scripts in executing tests all together after parsing finishes.