css.js
function createGetterSetter(propName) {
  function gs(element, value) {
    // if we have a value update
    if (typeof value != 'undefined') {
      element.style[propName] = value;
    }

    return window.getComputedStyle(element)[propName];
  }

  // attach the property name to the getter and setter
  gs.property = propName;
  return gs;
}
function createGetterSetter(propName) {
  function gs(element, value) {
    // if we have a value update
    if (typeof value != 'undefined') {
      element.style[propName] = value;
    }

    return window.getComputedStyle(element)[propName];
  }

  // attach the property name to the getter and setter
  gs.property = propName;
  return gs;
}
function createGetterSetter ( propName ) { function gs ( element , value ) { // if we have a value update if ( typeof value != 'undefined' ) { element . style [ propName ] = value ; } return window . getComputedStyle ( element ) [ propName ] ; } // attach the property name to the getter and setter gs . property = propName ; return gs ; }
/* internal helper functions
/ * internal helper functions