Fixing a typo in the js examples

I guess, var names with a dash are out of fashion ;)