Simple encrypt/decrypt with key in pure javascript