Generate array of n integer and sort it using HTML5 web workers