function getDomOrigin(el) {
    var box = el.getBoundingClientRect ? el.getBoundingClientRect() : { top: 0, left: 0 };
    var doc = el && el.ownerDocument;
    var body = doc.body;
    var win = doc.defaultView || doc.parentWindow || window;
    var docElem = doc.documentElement || body.parentNode;
    var clientTop = docElem.clientTop || body.clientTop || 0; // border on html or body or both
    var clientLeft = docElem.clientLeft || body.clientLeft || 0;

    return {
        left: box.left + (win.pageXOffset || docElem.scrollLeft) - clientLeft,
        top: box.top + (win.pageYOffset || docElem.scrollTop) - clientTop
    };
}
clear()
 Loops through all values in localStorage under the application
 namespace and removes them, preserving other key-value pairs in
 localStorage.