Browser incompatibility fix - MAX_SAFE_INTEGER

- Number.MAX_SAFE_INTEGER is only defined in ES6 and not currently cross-browser