Added query params to debug.html and fixed color handling