// get elements by class name

function getClass(name)
{
    return document.getElementsByClassName(name);
}
@@ -50,11 +50,126 @@
 name
-)%0A%7B
+, node)%0A%7B%0A    // if node !== null && node %3E= 0 (is integer)%0A    // return document.getElementsByClassName(name)%5Bnode%5D;
 %0A   

update to getClass()