Javascript can be multi-threaded. If you run Fibonacci in browser (1 thread) the UI will freeze in few miliseconds, here is a MVP where the UI doesn't freeze at all.