JavaScript : Insufficient encryption key length