document.getElementsByTagName('html')[0].className += ' hasjavascript';

(function(_deps, undefined){
	/*=====
	==dependencies
	Allow injection of dependencies so they can be theoretically modified for testing.
	Local names allow them to be minified.
	=====*/
	var $, globals, head, jQuery, window;
	if(!_deps){
		_deps = {};
	}

	window = globals = _deps.globals || this;

	head = _deps.head || window.head;
	jQuery = $ = _deps.jQuery || window.jQuery;

	/*=====
	==tmlib
	=====*/

	var __;
	if(typeof window.__ === 'undefined'){
		window.__ = {ua: {}, cfg: {}, 'class': {}, classes: {}, core: {}, 'data': {}, lib: {}, objects: {}};
	}
	__ = window.__;

	/*===
	==lib
	===*/

	__.message = function(arg){
		if(window.console && window.console.log){
			if(window.console.log.apply){
				window.console.log.apply(window.console, arguments);
			}else{ //--ie 8+, doesn't support multi-argument console.log, so we will loop through the arguments and log each one
				window.console.log('-----message:');
				for(var key in arguments){
					window.console.log(arguments[key]);
				}
			}
		}//else alert(arg); //-# for ielte7, other old browsers
	}

	/*===
	==classes
	===*/


	/*=====
	==config
	=====*/
	__.cfg.whatever = 'whatever';


	/*=====
	==main
	=====*/

	__.onload = function(){

	}

	/*===
	==init
	===*/
	if(typeof jQuery != 'undefined'){
		jQuery(__.onload);
	}else if(typeof head != 'undefined'){
		head.ready(__.onload);
	}else if(typeof __.lib.addListeners != 'undefined'){
		__.lib.addListeners(window, 'load', __.onload, false);
	}
})();

@@ -1,77 +1,4 @@
-document.getElementsByTagName('html')%5B0%5D.className += ' hasjavascript';%0A%0A
 (fun

don't set 'hasjavascript' class on <html>. should be done in HTML document