Remove useless function

Also fixed using the same counter variable in my neseted for loops. The
seeker function is fixed, but it does not style the page correctly, see
inline comment for more detail.