Removed unnecessary JavaScript from 'addPost' testing.