Multi-threaded javascript made easy