Adding Ajax to application