set loading indicator prior to getJSON call