Fix js beautification error
Move list JS to separate file
Use an object for search paging