added in a wrapper for console via the js debug library which helps when the console obj does not exist