Updated to fix cross origin request issue and using JSON now instead of xml. Including pretty.js here as well.