test os check to scripts.js