helpers.js
function(year) {
	var yr;
	
	if (!year) {
		
		// initialize date "buckets" for year and month;
		year = [1900, 2100];
		this._years = {};
		for (yr = year[0]; yr <= year[1]; yr += 1) {
			this._years[yr] = new Year(yr);
		}
	} else {
		this.year = year;
	}
	return this;
}
function(year) {
	var yr;
	
	if (!year) {
		
		// initialize date "buckets" for year and month;
		year = [1900, 2100];
		this._years = {};
		for (yr = year[0]; yr <= year[1]; yr += 1) {
			this._years[yr] = new Year(yr);
		}
	} else {
		this.year = year;
	}
	return this;
}
function ( year ) { var yr ; if ( ! year ) { // initialize date "buckets" for year and month; year = [ 1900 , 2100 ] ; this . _years = { } ; for ( yr = year [ 0 ] ; yr <= year [ 1 ] ; yr += 1 ) { this . _years [ yr ] = new Year ( yr ) ; } } else { this . year = year ; } return this ; }
define an object for time buckets
define an object for time buckets