Issue #561 - Execute inline JS.

This follows the approach of external scripts in executing tests all together after parsing finishes.
auto merge of #869 : Ms2ger/servo/inline-script, r=jdm

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