move all require_once calls for elementIndexed.php and elementHtml.php into scriptHtml.php
change id, name, class et al to abstract constructor to attrs hash array
changes to implement ScriptHtml class