Changed debug box to stop using jQuery