function FrequencyDisplay(element) { this.prefixes = { 'k': 3, 'M': 6, 'G': 9, 'T': 12 }; this.element = $(element); this.digits = []; this.precision = 2; this.setupElements(); this.setFrequency(0); } FrequencyDisplay.prototype.setupElements = function() { this.displayContainer = $('