<!DOCTYPE html>
<html>
<head>
<title>JS-Framework</title>
</head>
<body>
<div id="myDiv"></div>
<script>
function Framework(id) {
return document.getElementById(id);
}
Framework.now = function() {
return (new Date).getTime();
}
Element.prototype.addClass = function(className) {
this.className += ' ' + className;
return this;
}
Element.prototype.content = function(content) {
this.innerHTML = content;
return this;
}
var $ = Framework;
//alert($.now());
$('myDiv').addClass('foo').content('bar');
</script>
</body>
</html>