added removeElement function in blog.js. Refactored new thought form slightly