Add a debug option (logs to browser console)