Use ScriptRuntime to get Array[Byte] in ScriptableCrypto.

A JSArray element can't be casted to Array[Int] directly.
Implementing ScriptableBuffer...