split HTML files into HTML+JS files. JS code updated for node.js support.
for all tests except bindingTesting and extension