Introduced text type to VC and improve test suite

Change-Id: Ic51f3de112af5ec8d35bbae3bd97e988dbdb1a47
diff --git a/dev/js/src/vc/item.js b/dev/js/src/vc/item.js
index d2c6fc1..f9267e8 100644
--- a/dev/js/src/vc/item.js
+++ b/dev/js/src/vc/item.js
@@ -80,7 +80,8 @@
 
       // Create list item
       var li = document.createElement("li");
-      li.setAttribute("data-type", this._type);
+      if (this._type)
+        li.setAttribute("data-type", this._type);
       li.setAttribute("data-key",  this._key);
 
       // Connect action