A simple way to use multi-threading in javascript. Based on web workers.