JS function to determine if a string is the User-Agent for a browser (even if it doesn't start with `Mozilla/`!)