Add json respond block to activities controller. Add setInterval function to activities.js.
Code working except url. Need to escape, not sure how yet.
Add decodeURIComponent. Still not escaped.