Factored out wrapper and clock from index.html