<div id="trcWidget" title="TRC Widget">
Checking
</div>
<script type="text/javascript">
var istrc = "{{ticket.custom_fields.istrc}}";
if (istrc = null) {alert("It's null")};
if (istrc == "true") {
$("#trcWidget").html("This is a TRC");
} else {
$("#trcWidget").html("NOT a TRC");
}
</script>
 This gives me the error  Cannot read property 'html' of null