Utility module for multi-threaded javascript