Bug fixes related with signatures and optimizations

Now I'm "precompiling" the JavaScript code so it's faster to run the cipher