main.js
function convertUnit (xUnit, mUnit, mVal) {
	if (xUnit !== mUnit) {
		if (mUnit === 'em') {
			mVal = options.px_em_ratio * mVal;
		}
		if (xUnit === 'em') {
			mVal = mVal/options.px_em_ratio;
		}
	}

	return mVal;
}
function convertUnit (xUnit, mUnit, mVal) {
	if (xUnit !== mUnit) {
		if (mUnit === 'em') {
			mVal = options.px_em_ratio * mVal;
		}
		if (xUnit === 'em') {
			mVal = mVal/options.px_em_ratio;
		}
	}

	return mVal;
}
function convertUnit ( xUnit , mUnit , mVal ) { if ( xUnit !== mUnit ) { if ( mUnit === 'em' ) { mVal = options . px_em_ratio * mVal ; } if ( xUnit === 'em' ) { mVal = mVal / options . px_em_ratio ; } } return mVal ; }
checking for unit match and converting if needed
checking for unit match and converting if needed