working on js for threads
working on threaded js