Just change i directly:
for (var i = 0; i < 100; i += 4) {
i = 15000;
}
This would exit the loop immediately, but you could do whatever you wanted.
You should read up on function scope to understand how this stuff works. For loops are bit different from functions in that they're a language construct but the same theory of scope holds true.