Scrap JS thread; caused deadlocks