move elem() function into elem.php
fix elem('script', ..., ''): should be elem(..., true)
syntactic shugar: attr1=val1&attr2=val2 and end as array