updates by seantunwin fixing bug in waterfox browser relating to the way that browser reads JSON data