Add ajax - closes #4