Fix the broken batcher example

The CAS needed to do a gets instead of get. Also needed to check to do an add
first as the cas will fail if the key doesn't already exist.

Also fixed a syntax bug in the javscript portion of the template.

@robertkluin-wf @johnlockwood-wf @tannermiller-wf @ericolson-wf