create separate js file for post page