Begining JS threading experiment