(function (lazyLoader, $) {		// what happens when scripts have dependencies on other scripts :( Lazy loading is only suitable for certain types of functionality.		lazyLoader.init = function () {				var bodyClass = $.trim(($('body').attr('class')));		var initList = bodyClass.split(' ');		for(var i = 0; i < initList.length; i++) {						aScript = initList[i].indexOf('toy_');			if(aScript !== -1) {				var bScript = initList[i].substring(4, initList[i].length);				onTimer(bScript);			}					}					};		onTimer = function (bScript) {			var now = new Date();				/*				$.getScript("/js/toy." + bScript + ".js?time=" + now.getTime(), function (data, other) {			setTimeout(function(){				toy[bScript].init();			}, 50);		});				*/				$.ajax({			url : "/js/toy." + bScript + ".js?time=" + now.getTime(),			dataType : "script",			success : function () {				setTimeout(function(){					toy[bScript].init();				}, 50);			},			error : function (a,b,c) {				console.log(a);				console.log(b);				console.log(c);			}		});	};}(toy.lazyLoader, jQuery));
