make windows.js work