Sadly, the Javascript approach led to consistent Chrome crashes after running overnight