export elapsedMillis to Javascript context