Updating debugger.js with JSCS style fixes and more code porting from index.html