Make registerPrefix take a Name object, not a name string.
diff --git a/js/testing/test-put-async.html b/js/testing/test-put-async.html
index 448d8bf..315dec8 100644
--- a/js/testing/test-put-async.html
+++ b/js/testing/test-put-async.html
@@ -59,7 +59,7 @@
function run() {
var contentName = document.getElementById('contentname').value;
- var result = ndn.registerPrefix(contentName, new AsyncPutClosure());
+ var result = ndn.registerPrefix(new Name(contentName), new AsyncPutClosure());
document.getElementById('result').innerHTML = 'Content name \'' + contentName
+'\' published. Result: ' + result;