add logging to JS console bridge, and fix the audio buffering bug