setting up ajax script

I've got the basic structure, with comments on what needs to happen at
each point in the script.  Not sure how exactly we're going to print the
checkmark/red X...