novnc call bugfix and cleanup