automating win32 with JavaScript