Javascript Lib for threading