Have ajax plugin working