replace traditional dom accesses with jquery calls