Clean up js for update posts