more impl of javascript support, add tests using external js file, inline text, or inline CDATA.