var debounce = (function() {
        var timer;
        timer = 0;
        return function(callback, ms) {
            if (timer) {