Separate setTimeout tests into js file.

Change spaces to tabs in js and html test files.