removed ghost rows; added jquery bsSpan() and bsOffset() functions; cleaned up code a bit