Use hardwareConcurrency when available

Use `navigator.hardwareConcurrency` when its available for `util.estimateCores`. Also fixed a few missing inverted commas around the typeof checks. Closes #147