Jeremy: Adding hasClass(String className) Function
Jeremy: Added hasAttribute(String attributeName) function
minor formatting changes