Update client code to make correctly-formed AJAX requests based on server refactor
Add helpers.js