[JS] Cleanup test code for WinJS/HTML JS SDKs