making rowify work with/without jquery