Replaced jQuery position call with standard method