Basic Javascript threadpool implementation using web workers. For use with or without require.js.