removed infinite scrolling and cleaned up js file