fix getBox for jquery