/*
  This library gives quick and dirty shortcuts to access external data (using HTTP web protocol).

  v1.1.5, © DouWère, 2013

  json(url) --> fetch a json object
  raw(url) --> fetch raw data
*/


function json (http) {
  var json = new XMLHttpRequest ()
  json.open ("GET", http, false)
  json.send ()
  return JSON.parse (json.response)
}

function raw (url) {
  var raw = new XMLHttpRequest ()
  raw.open ("GET", url, false)
  raw.send ()
  return raw.response
}