Added pager to cycle javascript