Create winstate.js