Posts application using ajax