mobile platform detection script