fixed htmlFromTExpr assert
moved signalr code to specially named functions in js