Created 'hasAttr()' method; increased AJAX functionality.