Change cipher function to use external js interpreter, so it works again

You'd want to install e.g. spidermonkey for this to work