bugfix: rewrite to coffeescript class; initialize nonce fixed