Speck block cipher in JavaScript