selfcontain code. pass in jqObj

Got this to be more renderFormat friendly.