Use addToDomAsScript assuming js sent without script tag. Add sgDebug method