Corrected json formatting errors and added new queries

Corrected errors in how the json strings were being formatted,
substituting double quotes for any single quotes in the string and
making sure that all strings were being quoted. Also, added some new
queries to support the jQuery chart prototyping that I have been doing.