Adding jquery template binding and paging options