added small browser/os detection in js