Fixed Safari detection.
Started with simple browser detection
Added JSON detection + validation from JSON3