Extract isWindows to utility.js