Fix timing issues with testrunner webpage.

Move running += 1 up before the call to runTest(button). runTest(button) is async. If the ajax call finishes before running can be incremented (and there is only one test) then running will go negative. When this happens, the run all tests button will be permanently disabled until the page is refreshed.