// jQuery doOnce plugin
jQuery.fn.doOnce = function(func){ 
    this.length && func.apply(this); 
    return this; 
}