add os check to scripts.js