rewrited core, heapbox is now not limited to select element, added support for selected attribute>