Remove unnecessary html clearing from recent posts javascript