/**
 * todo: make it possible to count words instead of characters 
 *
 **/
jQuery.fn.textLimiter = function(charLimit){
    return this.each(function(){
            var max = charLimit;                                                
            $(this).bind("keyup", function(){
                var maxLength     = charLimit;
                var currentLength = this.value.length;
                if(currentLength >= maxLength) {                    
                    this.value = this.value.substring(0, maxLength);
                }                
            });
    });
};
