Simple JS platform detection