customization of error functions
rm old getJSON code