можно так
<!DOCTYPE HTML>
<html>
<head> </head>
<body>
<div id='elem'>askasdfskdofkdof</div>
<script>
var object_ = {
find: function (id) {
this.elem = document.getElementById(id);
this.innerHTML = this.elem.innerHTML;
return this;
},
}
function $(select) {
return object_.find(select);
}
alert($('elem').innerHTML)
</script>
</body>
</html>