Add exception for wrong signal name in JavaScript