Adds defensive code preventing JS error

This prevents a JS error in the event there are no events listed in the
resulting JSON.
Adds sig & sig_id params to API call