javascript -> rayscript