Loading posts via ajax, minor error-fixing