modified js thread block