js file for post