fxing winjs-compat