Changes made by Kelvin Kosbab (kelvin@kosbab.com). Add isOnScreen function to determine if element currently on screen ($().isOnScreen). On favorites and contacts replace load more buttons with text element that when visible (isOnScreen and is :visible) it increases the page size of the listview. Add timeout for loading function that will close loading after 10s. Add error checking in the template for contacts.