console.debug declaration to avoid javascript error problems