Commit #5: Rework of JS file for debug.