Change savePost() function
Removing uncessary js file