Rename some functions.
Update JSVisualTester test.