Relative Gamma

// Gamma in JavaScript
// Unit of speed is meters per second

var time = {
	C: 299792458,
	gamma: function (speed) {
		var delta = Math.sqrt(1 - Math.pow(speed, 2) / Math.pow(time.C, 2));
		return 1 / delta;
	},
	flux: function (speed) {
		return 'Time Dilation Ratio = 1 : ' + time.gamma(speed);
	}
}

// Example call
console.log(time.flux(speed=1000))