Ensuring that after typescript rebuilds a watched file, page is reloaded.