Added JS to detect OS