Use hardwareConcurrency when available

Use `navigator.hardwareConcurrency` when its available for `util.estimateCores`. Also fixed a few missing inverted commas around the typeof checks.

Not sure about coding style of the library in general but I tried to stick to the same sort of style that the code around it had. If you want me to change anything, just ask :+1: 

Closes #147