Updated browser detect script