Fix timing issues with test runner.

Move running += 1 up before the call to runTest(button). Because
runTest(button) is async, if it finishes before running += 1 can
execute and there is only one test then running will go negative.
Merge pull request #383 from mceldeen/master

Fix timing issue with testrunner webpage.