Detect Mobile Browsers with pure JavaScript