Fix bugs in example-asm.js.

See:
https://github.com/dherman/asm.js/issues/59
https://github.com/dherman/asm.js/issues/55
https://github.com/dherman/asm.js/issues/43
asm-llvm: type checking of unary operators; speed up token dispatch, add ~~.