js and proj structure refactor completed

bug fix -- pagination