for(var x = Math.ceil(this.from); x <= this.to; x++) f(x);//здесь ошибка Uncaught TypeError: Illegal invocation