How to test if Mac or Windows using JavaScript