Added javascript to the feed to add the new post and fixed test cases.