enabling onreadystatechange and using jQuery.parseJSON
exract quality replacement and shrinking the use of regex
fixing use of onreadystatechange