separate js files for posts and index