clean up js/inc and redo home query for linked