Create new posts using codeigniter and ajax