Bug fixes and optimizations

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