Moving index.html JS code to new class - GiraphDebugger