Native Javascript shim for the microtime package