Modify build process to help debug JS test runner