using jquery to display debug messages