Fix passing parameters through error callbacks
Simple client: log to html page instead of console