Added Debug Section to Javascript